<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>用户修改</title>
    <script src="https://cdn.bootcdn.net/ajax/libs/jquery/3.6.0/jquery.js"></script>
    <script src="https://cdn.bootcdn.net/ajax/libs/twitter-bootstrap/4.5.2/js/bootstrap.js"></script>
    <link href="https://cdn.bootcdn.net/ajax/libs/twitter-bootstrap/4.5.2/css/bootstrap.css" rel="stylesheet">
</head>
<body>
<div class="container">
    <form th:action="@{/admin/updatePassenger}" method="post" style="max-width: 400px;margin: 10px auto">
        <div class="form-group">
            <input type="hidden" th:value="${byId.id}" id="id" name="id" class="form-control">
        </div>
        <div class="form-group">
            <label for="username">用户名</label>
            <input type="text" th:value="${byId.username}" id="username" name="username" class="form-control" >
        </div>
        <div class="form-group">
            <label for="name">姓名</label>
            <input type="text" th:value="${byId.name}" id="name" name="name" class="form-control" >
        </div>
        <div class="form-group">
            <label for="myGuide">我的导游</label>
            <input type="text" th:value="${byId.myGuide}" id="myGuide" name="myGuide" class="form-control" >
        </div>
        <div class="form-group">
            <label for="scenicSpot">景点</label>
            <input type="text" th:value="${byId.scenicSpot}" id="scenicSpot" name="scenicSpot" class="form-control" >
        </div>
        <div class="form-group">
            <label for="payStatus">支付状态</label>
            <input type="text" th:value="${byId.payStatus}" id="payStatus" name="payStatus" class="form-control" >
        </div>
        <div class="form-group">
            <label for="passengerRole">用户角色</label>
            <input type="text" th:value="${byId.passengerRole}" id="passengerRole" name="passengerRole" class="form-control" >
        </div>
        <div class="form-group">
            <label for="tel">联系电话</label>
            <input type="text" th:value="${byId.tel}" id="tel" name="tel" class="form-control" >
        </div>
        <input type="submit" class="btn btn-success" value="修改" style="width: 100%">
    </form>
</div>
</body>
</html>